/**
 * 文件工具类
 * @param file 文件对象
 */
export const isImageFile = (file) => {
    if (typeof file === 'object' && file !== null && 'type' in file) {
        console.log(111, file.type.toLowerCase())
        const IMAGE_MIME = ["image/jpeg", "image/png"];
        const mimeStr = file.type.toLowerCase()
        return IMAGE_MIME.includes(mimeStr)
    }
    return false
}
